package com.xm.service.framework.feign.fallback;

import com.xm.service.framework.feign.UserFeignClient;
import com.xm.service.framework.utils.Result;
import org.springframework.web.bind.annotation.RequestParam;

public class UserFeignClientFallback implements UserFeignClient {

    @Override
    public Result login(@RequestParam int uid, @RequestParam String pwd) {
        return Result.error("UserFeignClientFallback","账号或密码错误！");
    }

    @Override
    public Result register(String uname, String password, String email, int age, String gender) {
        return Result.error("UserFeignClientFallback","申请失败！");
    }

    @Override
    public byte[] generateImage() {
        return new byte[0];
    }

    @Override
    public int checkCode(String code) {
        return 0;
    }
}
